package com.atguigu.dao;

import com.atguigu.entity.Permission;

import java.util.List;

/**
 * @author hljstart
 * @create 2022-06-13-14:21
 */
public interface PermissionDao extends BaseDao<Permission> {

    List<Permission> findAll();

    List<Permission> getMenuPermissionsByAdminId(Long userId);

    List<String> getAllPermissionCodes();

    List<String> getPermissionCodeByAdminId(Long id);
}
